package com.kun.comic.extra;

import android.app.ProgressDialog;
import android.content.Context;

public class Ultils {
	private static ProgressDialog pDialog;

	public static void CreateDialog(Context context) {
		if (pDialog == null) {
			pDialog = new ProgressDialog(context);
			pDialog.setMessage("Loading...");
			pDialog.setIndeterminate(false);
			pDialog.setCancelable(false);
		}
		pDialog.show();
	}

	public static void DimissDialog() {
		if (pDialog != null && pDialog.isShowing()) {
			pDialog.dismiss();
			pDialog = null;
		}
	}
}
